﻿@model GameSchoolApplication.ViewModels.AddPersonToGameViewModel

@{
	ViewBag.Title = "Bæta nemanda við leik";
	Layout = "~/Views/Shared/_AdministratorLayout.cshtml";
	
}
<section id="SingleMainContent">
<h2>Bæta nemanda við leik</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        @Html.HiddenFor(model => model.GameId)
        <div class="display-label">@Html.LabelFor(model => model.StudentId)</div>
        <div class="display-field">
        @Html.DropDownListFor(model => model.StudentId, new SelectList(Model.Person, "Id", "Name"))
        </div><br />
        

        <p>
            <input type="submit" value="Staðfesta" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Til baka í lista", "Index")
</div>
</section>